package com.bluedot.bank.dao.account;

import com.bluedot.bank.dao.HibernateDaoSupport;
import com.bluedot.bank.dao.Pagination;

public class AccountDaoImpl extends HibernateDaoSupport<Account, Long>
		implements AccountDao {
	public AccountDaoImpl() {
		this.entityClass = Account.class;
	}
	@Override
	public void browse(Pagination<Account> pagination) {
		AccountConditions f=(AccountConditions)pagination.getConditon();
		if(f!=null)
		{
			this.getSession().enableFilter(f.getFilterName()).setParameter(f.getKey(), f.getO());
		}
		super.browse(pagination);
	}
}
